package com.travel.JPA;

import com.travel.Bean.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CommentJPA extends JpaRepository<Comment,String> {

    //获取攻略一级评论
    @Query("select c from Comment c where c.id like concat(?1,'_%') ")
    List<Comment> getCommentByIdLike(String StrategyId);


}
